package com.infore.authorityManagement.service;

import java.util.List;
import java.util.Map;

import com.infore.authorityManagement.entity.SysPermission;
import com.infore.authorityManagement.entity.SysRole;
import com.infore.authorityManagement.entity.SysRolePermission;
import com.infore.authorityManagement.entity.SysRoleStation;
import com.infore.authorityManagement.util.Page;

public interface ISysRoleService {

    SysRole getRoleById(String roleId);

    List<SysRole> getRoles(SysRole sysRole);

    Page<SysRole> getRolesForPage(SysRole sysRole, Integer pageSize, Integer pageNo);

    Page<SysRole> getRolesWidthParent(SysRole sysRole, Integer pageSize, Integer pageNo);

    Map<String, Object> addRole(SysRole sysRole);

    int updateRoles(SysRole sysRole);

    int deleteRoleById(String roleId);

    int addRoleStations(String roleId, String[] stationIds);

    List<SysRoleStation> getRoleStations(String roleId);

    int addRolePermissions(String roleId, String[] permissionArray);

    List<SysPermission> getRolePermissionMenu(String roleId, String appCode);

    List<SysRolePermission> getRolePermissions(String roleId);

}
